home *** CD-ROM | disk | FTP | other *** search
- On Tue, 31 Jan 1995, stud.ass. wrote:
-
- > > How does recursive programming work? Suppose I wanted to make a
- > > MineSweeper clone, how would I let the computer show all the
- > > fields that aren't surrounded by a bomb whenever I hit a field
- > > which is not surrounded by a bomb?
- > > Mind, I'm not trying to make a clone here, I just thought it's
- > > the best way to illustrate whatever I try to... well, er, try,
- > > really :)
- > BTW, why would you want to use recursion for this Mines-clone. You
- > could just check the array, could you not?
- No, because I have to know which clear squares connect to which. I mean,
- what do you exactly mean with checking the array. AFAIK checking the
- array implies resorting to some form of recursive programming.
- (I learned that term from someone who sent me an example once of the
- core of minesweeper, and he spoke of recursive programming.)
-
- So, could anyone post me something similar?
-
- Flint.
-
- "My boy, if ever you are lost at sea, drop right in and think of me."
- - J. Heller
-
-
-